﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using Supersense.db;
using System.Data;
using System.Text.RegularExpressions;

public partial class solution : System.Web.UI.Page
{
    public DataTable industry;
    public DataTable solutions;

    protected void Page_Load(object sender, EventArgs e)
    {
        Crud modelSolution = new Crud("ss_spacenews", "id");
        int id = Convert.ToInt32(Request.QueryString["id"]);
        DataTable dt = modelSolution.fPk(id);

        Crud modelCategory = new Crud("ss_category", "id");
        industry = modelSolution.fList("type='solution'", "", "", "");
        solutions = modelSolution.fList("type='solution'", "", "", "");
    }

    public string JieQu(string inputString, int Len)
    {
        int tempLen = 0;
        string tempString = "";
        int len = Convert.ToInt32(Len);
        if (inputString.Length > len)
        {
            tempString = inputString.Substring(0, len) + "…";//截获前len个字符并加上…
        }
        else
        {
            tempString = inputString;
        }
        return tempString;
    }
}